package com.randb.easyhttp.model;

/**
 * User: RandBII
 * Date: 2020/5/8
 * Description:
 */
public class ApiResult<T> {

    private int code;
    private T data;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isOk() {
        return code == 0;
    }
}
